package org.NooLab.html.content.table;

import java.util.ArrayList;
import java.util.Vector;






public class HtmlTableCol {
	// =================================

	// object references ..............

	
	
	// main variables / properties ....

	int index = -1;
	int rowcount ;
	
	ArrayList<String> cells = new ArrayList<String>(); 
	
	// constants ......................

	
	
	// volatile variables .............

	
	
	// helper objects .................
	
	// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
	public HtmlTableCol(){
		
	}
	// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

	public void setCell( int index, String str){
		if ((index>=0) && (str!=null)){ 
			if (index<cells.size()-1){
				cells.set(index, str);
			}else{
				cells.add(str);
				rowcount = cells.size();
			}
		}
	}

	public String getCellofRow(int index ){
		String content = "";
		
		return content ;
	}
	
	// ------------------------------------------------------------------------
	
	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public int getRowCount() {
		return rowcount;
	}

	public void setRowCount(int rowcnt) {
		this.rowcount = rowcnt;
	}

	public ArrayList<String> getCells() {
		return cells;
	}

	public void setCells(ArrayList<String> cells) {
		this.cells = cells;
	}
	
	
	
}
